package ca.qc.bdeb.info.pp2.tp2.controleur;

import javax.servlet.http.HttpServletRequest;

/**
 * Commande nulle, typiquement utilisée pour la navigation simple.
 * Implantation du patron Null Object.
 * @author Stéphane Lévesque
 */
public class CommandeNulle implements Commande
{
    private String next;

    public CommandeNulle(String next)
    {
        this.next = next.toLowerCase();
    }

    @Override
    public String executer(HttpServletRequest req) throws CommandeException
    {
        return next;
    }
}
